home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / newmk.zip / SHRMEM.MAK
Makefile  |  1992-10-09  |  1KB  |  56 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. # This line allows NMAKE to work as well
  6.  
  7. all: shrmem.dll shrtest.exe init.exe
  8.  
  9. # Update the object files if necessary
  10.  
  11. shrtest.obj: shrtest.c
  12.     $(cc) $(cflags) $(cvars) shrtest.c
  13.  
  14. init.obj: init.c
  15.     $(cc) $(cflags) $(cvars) init.c
  16.  
  17. shrmem.obj: shrmem.c
  18.     $(cc) -DDEVL $(cflags) $(cvars) shrmem.c
  19.  
  20. # Update the resources if necessary
  21.  
  22. shrtest2.res: shrtest.rc shrtest.h shrtest.dlg
  23.     rc -r -fo shrtest.tmp shrtest.rc
  24.     cvtres -$(CPU) shrtest.tmp -o shrtest2.res
  25.     del shrtest.tmp
  26.  
  27. # Update the import library
  28.  
  29. # shrmem.lib: shrmem.obj shrmem.def
  30. shrmem.lib: shrmem.def
  31.     lib -machine:$(CPU)      \
  32.     -def:shrmem.def         \
  33.     -out:shrmem.lib
  34.  
  35. # Update the dynamic link library
  36.  
  37. shrmem.dll: shrmem.obj shrmem.lib shrmem.def 
  38.     $(link) \
  39.     -base:0x1C000000 \
  40.     -dll \
  41.     -entry:ShrMemEntry \
  42.     -out:shrmem.dll \
  43.     shrmem.exp shrmem.obj $(guilibs) advapi32.lib
  44.  
  45.  
  46. # Update the executable file if necessary.
  47. # If so, add the resource back in.
  48.  
  49. shrtest.exe: shrtest.obj shrmem.lib shrtest2.res shrtest.def
  50.     $(link) $(guiflags) -out:shrtest.exe shrtest.obj shrmem.lib shrtest2.res $(guilibs)
  51.  
  52. init.exe: init.obj
  53.     $(link) $(conflags) -out:init.exe init.obj $(guilibs) advapi32.lib
  54.  
  55.  
  56.